<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>会议管理 - <?php echo $this->content['name'];?></title>
<link href="<?php echo $this->baseUrl;?>/admincss/newstyle.css" rel="stylesheet" type="text/css" />
<link href="<?php echo $this->baseUrl;?>/admincss/thickbox.css" rel="stylesheet" type="text/css" />

<script>
var t=0;
function SetWinHeight(obj)
{
 var win=obj;

 try{

	 var bHeight = win.contentWindow.document.body.scrollHeight;
	 var cHeight = win.contentWindow.document.documentElement.clientHeight;
	 var dHeight = win.contentWindow.document.documentElement.scrollHeight;
	 
	 var height = Math.max(bHeight, dHeight, cHeight, 520);

	 $('#mainFrame').height(height);

 }catch (ex){

		}

 if (t != 0)
	 clearInterval(t);
 
 t = setInterval(function (){
	 SetWinHeight(obj);
	}, 500);
}
</script>
<base target='mainFrame' />
</head>

<body>
<?php 
$startdate = date("Y年m月d日", strtotime($this->content['startdate']));
$enddate = date("Y年m月d日", strtotime($this->content['enddate']));

$arr_status = array("未申请","待审核","未通过","已发布");
$arr_style = array("c_ora_red","c_ora_red","c_ora_red","c_red");
$s_url = '';
$status = (int)$this->content['status'];
switch ($status){//0:注册未提交审核  1：提交等待审核  2：审核未通过   3：审核通过
case 0:
case 2:
	$s_url = '<a href="javascript:void(0);" onclick="javascript:return change_status(' . $this->content['mid'] . ', 1);">申请发布</a>';
	break;
case 3:
//case 1:
	$s_url = '<a href="javascript:void(0);" onclick="javascript:return change_status(' . $this->content['mid'] . ', 0);">取消发布</a>';
	break;
}
?>
<div class="m_top">
<div class="m_top_l2">
	<span class="grey">会议名称：</span><?php echo $this->content['name'];?>&nbsp;
	<br /><span class="grey">会议时间：</span><?php echo $startdate;?> - <?php echo $enddate;?>
	<br />
	<span class="grey">办会地点：</span><?php echo $this->content['address'];?>
</div>
<div class="m_top_l2">
	<span class="grey">会议状态：</span><span class="<?php echo $arr_style[$status];?>"><?php echo $arr_status[$status];?></span>&nbsp;<?php echo $s_url;?>
	<br /><span class="grey">会议预览：</span><a target="_blank" href="<?php echo $this->baseUrl . '/' . $this->content['domain'];?>?d=2">点击预览</a>
	<br />
</div>
<div class="m_top_r">欢迎您，<?php echo $this->uinfo['name'];?></div>
</div>

<table align="left" border="0" width="100%">
<tr><td valign="top" width="205">
<div class="m_left">

<a href="javascript:void(0);" class="m_title">配置</a>
<ul class="m_ulleft">
<li><a href="<?php echo $this->url($this->baseUrl, "meetcp", "create1", "mid=" . $this->content['mid']);?>" target="_blank" class="m_item">会议配置</a></li>
<li><a href="<?php echo $this->url($this->baseUrl, "manage", "index", "mid=" . $this->content['mid']);?>" class="m_item">首页配置</a></li>
<li><a href="<?php echo $this->url($this->baseUrl, "manage", "mail", "mid=" . $this->content['mid']);?>" class="m_item">邮箱配置</a></li>
<li><a href="<?php echo $this->url($this->baseUrl, "manage", "ctip", "mid=" . $this->content['mid']);?>" class="m_item">关闭提示配置</a></li>
</ul>

<a href="javascript:void(0);" class="m_title">注册管理</a>
<ul class="m_ulleft" style="display:none">
<li><a href="<?php echo $this->url($this->baseUrl, "manage", "ulist", "mid=" . $this->content['mid']);?>" class="m_item">全部用户</a></li>
<li><a href="<?php echo $this->url($this->baseUrl, "manage", "ulist", "mid=" . $this->content['mid'] . '&ischeck=1');?>" class="m_item">待审核</a></li>
<li><a href="<?php echo $this->url($this->baseUrl, "manage", "ulist", "mid=" . $this->content['mid'] . '&ischeck=3');?>" class="m_item">未通过审核</a></li>
<li><a href="<?php echo $this->url($this->baseUrl, "manage", "ulist", "mid=" . $this->content['mid'] . '&ischeck=2');?>" class="m_item">通过审核(全部)</a></li>
<li><a href="<?php echo $this->url($this->baseUrl, "manage", "ulist", "mid=" . $this->content['mid'] . '&ischeck=2&ischange=1');?>" class="m_item">通过审核(已发确认信)</a></li>
<li><a href="<?php echo $this->url($this->baseUrl, "manage", "ulist", "mid=" . $this->content['mid'] . '&ischeck=2&ischange=0');?>" class="m_item">通过审核(未发确认信)</a></li>
<li><a href="<?php echo $this->url($this->baseUrl, "manage", "ulist", "mid=" . $this->content['mid'] . '&ischeck=4');?>" class="m_item">最终确认</a></li>
<li><a href="<?php echo $this->url($this->baseUrl, "manage", "usearch", "mid=" . $this->content['mid']);?>" class="m_item">E-Mail查找</a></li>
<li>=====================</li>
<li><a href="<?php echo $this->url($this->baseUrl, "manage", "uexport", "mid=" . $this->content['mid']);?>&type=0" class="m_item">导出EXCEL(全部用户)</a></li>
<li><a href="<?php echo $this->url($this->baseUrl, "manage", "ugexport", "mid=" . $this->content['mid']);?>&type=0" class="m_item">分组导出EXCEL(全部用户)</a></li>
<li><a href="<?php echo $this->url($this->baseUrl, "manage", "uexport", "mid=" . $this->content['mid']);?>&type=1" class="m_item">导出EXCEL(待审核)</a></li>
<li><a href="<?php echo $this->url($this->baseUrl, "manage", "ugexport", "mid=" . $this->content['mid']);?>&type=1" class="m_item">分组导出EXCEL(待审核)</a></li>
<li><a href="<?php echo $this->url($this->baseUrl, "manage", "uexport", "mid=" . $this->content['mid']);?>&type=3" class="m_item">导出EXCEL(未通过审核)</a></li>
<li><a href="<?php echo $this->url($this->baseUrl, "manage", "ugexport", "mid=" . $this->content['mid']);?>&type=3" class="m_item">分组导出EXCEL(未通过审核)</a></li>
<li><a href="<?php echo $this->url($this->baseUrl, "manage", "uexport", "mid=" . $this->content['mid']);?>&type=2" class="m_item">导出EXCEL(通过审核)</a></li>
<li><a href="<?php echo $this->url($this->baseUrl, "manage", "ugexport", "mid=" . $this->content['mid']);?>&type=2" class="m_item">分组导出EXCEL(通过审核)</a></li>
<li><a href="<?php echo $this->url($this->baseUrl, "manage", "uexport", "mid=" . $this->content['mid']);?>&type=4" class="m_item">导出EXCEL(最终确认)</a></li>
<li><a href="<?php echo $this->url($this->baseUrl, "manage", "ugexport", "mid=" . $this->content['mid']);?>&type=4" class="m_item">分组导出EXCEL(最终确认)</a></li>
</ul>


<a href="javascript:void(0);" class="m_title">上传文件管理</a>
<ul class="m_ulleft" style="display:none">
<?php foreach($this->arr_file_item as $v):?>
<li><a href="<?php echo $this->url($this->baseUrl, "manage", "file", "mid=" . $this->content['mid'] . '&uuid=' . $v['uuid']);?>" class="m_item"><?php echo $v['name'];?></a></li>
<?php endforeach;?>
</ul>


<a href="javascript:void(0);" class="m_title">邀请码</a>
<ul class="m_ulleft" style="display:none">
<li><a href="<?php echo $this->url($this->baseUrl, "invite", "import", "mid=" . $this->content['mid']);?>" class="m_item">导入EXCEL</a></li>
<li><a href="<?php echo $this->url($this->baseUrl, "invite", "send", "mid=" . $this->content['mid']);?>" class="m_item">发送邀请信</a></li>
<li><a href="<?php echo $this->url($this->baseUrl, "invite", "search", "mid=" . $this->content['mid']);?>" class="m_item">查询邀请码</a></li>
<li><a href="<?php echo $this->url($this->baseUrl, "invite", "list", "mid=" . $this->content['mid']);?>" class="m_item">全部邀请码</a></li>
<li><a href="<?php echo $this->url($this->baseUrl, "invite", "list", "mid=" . $this->content['mid'] . '&use=1');?>" class="m_item">已使用</a></li>
<li><a href="<?php echo $this->url($this->baseUrl, "invite", "list", "mid=" . $this->content['mid'] . '&use=0');?>" class="m_item">未使用</a></li>
</ul>



<a href="<?php echo $this->url($this->baseUrl, "invite", "confirm", "mid=" . $this->content['mid']);?>" class="m_title">最终确认</a>


<a href="javascript:void(0);" class="m_title">NewsLetter</a>
<ul class="m_ulleft" style="display:none">
<li><a href="<?php echo $this->url($this->baseUrl, "manage", "setnl", "mid=" . $this->content['mid']);?>" class="m_item">设置字段</a></li>
<li><a href="<?php echo $this->url($this->baseUrl, "manage", "nllist", "mid=" . $this->content['mid']);?>" class="m_item">名单查看</a></li>
<li><a href="<?php echo $this->url($this->baseUrl, "invite", "nlsend", "mid=" . $this->content['mid']);?>" class="m_item">发送文件</a></li>
</ul>


<a href="<?php echo $this->url($this->baseUrl, "invite", "allsend", "mid=" . $this->content['mid']);?>" class="m_title">邮件群发</a>

<a href="javascript:void(0);" class="m_title">邮件发送记录</a>
<ul class="m_ulleft" style="display:none">
<li><a href="<?php echo $this->url($this->baseUrl, "maillog", "search", "mid=" . $this->content['mid']);?>" class="m_item">搜索</a></li>
<li><a href="<?php echo $this->url($this->baseUrl, "maillog", "list", "mid=" . $this->content['mid']);?>" class="m_item">全部列表</a></li>
<li><a href="<?php echo $this->url($this->baseUrl, "maillog", "list", "mid=" . $this->content['mid'] . '&message=1');?>" class="m_item">发送成功列表</a></li>
<li><a href="<?php echo $this->url($this->baseUrl, "maillog", "list", "mid=" . $this->content['mid'] . '&message=0');?>" class="m_item">发送失败列表</a></li>
<li><a onclick="javascript:return window.confirm('确认清空！');" href="<?php echo $this->url($this->baseUrl, "maillog", "flush", "mid=" . $this->content['mid']);?>" class="m_item ">清空记录</a></li>
</ul>


</div>
</td><td valign="top">
<iframe name="mainFrame" id="mainFrame" scrolling="auto"  width="100%" height="500" allowtransparency="true" src="<?php echo $this->url($this->baseUrl, "meetcp", "managemenu", "type=m_main&mid=" . $this->content['mid']);?>" frameborder="0" onload="Javascript:SetWinHeight(this)"></iframe>
</td></tr></table>
</body>



<script>
var baseUrl = "<?php echo $this->baseUrl;?>";
</script>
<script language="javascript" type="text/javascript" src="<?php echo $this->baseUrl;?>/js/jquery-1.6.2.min.js"></script>
<script language="javascript" type="text/javascript" src="<?php echo $this->baseUrl;?>/adminjs/thickbox.compressed.js" /></script>

<script>

function change_status(mid, newstatus)
{
	if (window.confirm("确认操作") == false)
		return false;

	var baseUrl = "<?php echo $this->baseUrl;?>";
	var url = baseUrl + "/?c=meetcp&a=cstatus";
	var param = {};
	param.mid = mid;
	param.newstatus = newstatus;
	
	$.post(url, param, function (ret){
		if (ret.status == 0)
			alert(ret.message);
		else{
			location.reload();
		}
	}, "json");	
	
	return false;
}

$(function (){
	$('.m_title').click(doToggleItem);
	$(".m_item").click(doItemClick);
});


function doToggleItem()
{
	var ulobj = $(this).next("ul");
	ulobj.slideToggle("fast", "linear");
}


function doItemClick()
{
	var obj = $(this);

	$(".m_item").removeClass("m_item_selected");

	obj.addClass("m_item_selected");
}

// 弹出提示框
function tbshow(param1, param2)
{	
	//tb_s1_url = "#TB_inline?height=200&width="+width+"&inlineId=div_create&modal=true";
	// baseUrl + "/?c=meetcp&a=docreate4_kdedit&aid="+aid+"&TB_iframe=true&height=530&width=725&inlineId=div_edit&modal=true"
	tb_show(param1, param2);
}
</script>

</html>
